package com.example.codegen;

public class NewInstanceExpression implements Expression {
    public Identifier className;

    public NewInstanceExpression(Identifier s) {
        className = s;
    }

    @Override
    public String toJava() {
        return "new " + className.toJava() + "()";
    }

    @Override
    public String toGo() {
        return "&" + className.toGo().toUpperCase() + "{}";
    }

    @Override
    public String toJs() {
        return "new " + className.toJs() + "()";
    }

    @Override
    public String toCSharp() {
        return "new " + className.toCSharp() + "()";
    }

    @Override
    public String toCJ() {
        return className.toCJ() + "()";
    }
}
